package com.sc.smartcommunity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
@TableName("access_record")
public class Access {
    @TableId(type = IdType.AUTO)
    private Long id;
    //地点
    @TableField("location")
    private String location;
    //日期
    @TableField("record_date")
    private LocalDate date;
    //星期
    @TableField("weekday")
    private String weekday;
    //开始时间
    @TableField("start_time")
    private LocalTime startTime;
    //结束时间
    @TableField("end_time")
    private LocalTime endTime;
    //当前时间
    @TableField("create_time")
    private LocalDateTime createTime;

    public Access(Long id, String location, LocalDate date, String weekday, LocalTime startTime, LocalTime endTime, LocalDateTime createTime) {
        this.id = id;
        this.location = location;
        this.date = date;
        this.weekday = weekday;
        this.startTime = startTime;
        this.endTime = endTime;
        this.createTime = createTime;
    }

    public Access() {
        
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getWeekday() {
        return weekday;
    }

    public void setWeekday(String weekday) {
        this.weekday = weekday;
    }

    public LocalTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalTime startTime) {
        this.startTime = startTime;
    }

    public LocalTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalTime endTime) {
        this.endTime = endTime;
    }

    public void setRecordDate(LocalDate currentDate) {
    }

    public void setCreateTime(LocalDateTime now) {
    }
}
